#include "fcntl.h"
#include "stdio.h"
#include "unistd.h"
int main()
{
  int fd;
  char c;
  
  fd = Open("foobar.txt",O-RDONLY,0);
  if(Fork()==0
    ){
   Read(fd ,&c,1);
   exit(0); 
      }
  Wait(NULL);
  Read(fd,&c,1);
  printf("c = %c\n",c);
  exit(0);
}
